package com.midea.ai.air.ui.home;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.midea.ai.air.R;
import com.midea.ai.air.view.MyTitleBar;

/**
 * Created by hww on 2016/3/25.
 */
public class HomeAirSettingLocalInformation extends Activity implements View.OnClickListener {

    private TextView actionbar_left_tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_homeairsettinglocalinformation);

        init();
    }

    MyTitleBar myTitleBar;

    private void init() {
        myTitleBar = new MyTitleBar(this);
        myTitleBar.setActionBar_center(R.string.home_air_setting_local_information);
        myTitleBar.setActioBar_left(true, R.drawable.register_titler_left, R.string.home_air_setting);
        myTitleBar.setActionBar_right(false, 0);

        actionbar_left_tv = (TextView) findViewById(R.id.actionbar_tv_left);
        actionbar_left_tv.setTextColor(getResources().getColor(R.color.electric_histogram));

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.actionbar_left_relativeLayout:
                //返回
                finish();
                break;
            default:
                break;
        }
    }


}
